export const tableConfig = [
    { prop: "name", label: "部门名称" },
    { label: "操作", slotName: "operate", fixed: "right" }
];
export const formConfig = [{ formType: "input", type: "text", formName: "name", labelName: "部门名称", placeholder: "请输入部门名称" }];

export const rules = {
    name: [
        {
            validator: (rule, value, callback) => {
                if (!value) {
                    callback(new Error("请输入部门名称"));
                } else {
                    return true;
                }
            },
            trigger: "blur"
        }
    ]
};
